<%-- 
    Document   : chitietdonhang
    Created on : 29-10-2011, 14:08:33
    Author     : VuTienIT
--%>
<%@page import="java.util.ArrayList" %>
<%@page import="model.pojo.*" %>
<%@page import="model.dao.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<div id="content_middle">
    <h3>Quản lý đơn đặt hàng</h3>
    <div class="detail_box">
        <div class="sidebar_box_content">
            <div id="login_box">

                <table width="100%" border="1">
                  <tr>
                    <td><h4>Sản phẩm</h4></td>
                    <td><h4>Số lượng</h4></td>
                    <td><h4>Đơn giá</h4></td>
                    <td><h4>Thành tiền</h4></td>
                  </tr>
                  <%
                    ArrayList<CTDHPOJO> dsHD = (ArrayList<CTDHPOJO>) request.getAttribute("CTDonDatHangS");
                    if(!dsHD.isEmpty()){
                    for(int i=0;i<dsHD.size();i++)
                    { 
                        CTDHPOJO cthd = new CTDHPOJO();
                        cthd = dsHD.get(i);
                        PhieuPOJO p = PhieuDAO.GetPhieu(cthd.getMaPhieu());
                  %>
                  <tr>
                    <td><a h href="ChiTietSanPham?MaPhieu=<%= cthd.getMaPhieu() %>"><%=p.getTenPhieu()%></a></td>
                    <td><%=cthd.getSoLuong()%></td>
                    <td><%=cthd.getGiaBan()%></td>
                    <td><%=cthd.getThanhTien()%></td>
                  </tr>
                    
                
                  <% } %>
                  <% } %>
                </table>
                
            </div>
        </div>
        <p>&nbsp;</p>
    </div>

    <div class="cleaner"></div>
</div>
